package com.specialized.driver.remote;

import com.specialized.common.core.domain.Result;
import com.specialized.driver.domain.Driver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "specialized-driver")
public interface DriverRemoteService {


    /**
     * 查询司机列表
     */
    @GetMapping("/list")
    public Result list(Driver driver);


    /**
     * 获取司机详细信息
     */
    @GetMapping(value = "/{driverId}")
    public Result getInfo(@PathVariable("driverId") Long driverId);






}
